package com.andy.qi.repository;

import org.springframework.data.repository.Repository;

import com.andy.qi.domain.Message;

public interface MessageRepository extends Repository<Message, String> {

    boolean exists(String id);
    
    void save(Message obj);

    Message findOne(String id);

    Message findOneByTypeAndVersion(String type, String version);
}
